Hi, |
Re: Print enum list of a 'Type" in a Module
The key to this is to use the "size" property of an attribute type and print out the values and string arrays (these are all BTW desctibed in DXL Help).
Module m = current
AttrType at = null
int AttrSize = 0
int i = 0
AttrDef ad = find(m, "Requirement")
if (!null ad)
{
at = ad.type
AttrSize = at.size
for (i=0;i<AttrSize;i++)
{
print at.values[i] ": " at.strings[i] "\n"
}
}
|
Re: Print enum list of a 'Type" in a Module SystemAdmin - Tue Sep 01 01:05:23 EDT 2009
The key to this is to use the "size" property of an attribute type and print out the values and string arrays (these are all BTW desctibed in DXL Help).
Module m = current
AttrType at = null
int AttrSize = 0
int i = 0
AttrDef ad = find(m, "Requirement")
if (!null ad)
{
at = ad.type
AttrSize = at.size
for (i=0;i<AttrSize;i++)
{
print at.values[i] ": " at.strings[i] "\n"
}
}
|